import request from "@/app/(dashboard)/common/request";
import { generateReq,generateRes,uploadReq } from '@/types/api/generate';

/**功能生成图片 */
export async function generateImage(kit: string,img_url:string) {
  return await request.post<generateRes, generateReq>("/generate", { kit,img_url });
}
/**上传文件 */
export async function uploadFile(type:string,name:string,path:string,file:string) {
  return await request.post<string, uploadReq>("/upload", { type,name,path,file });
}